package model

import "time"

type Viper struct {
	Id        uint      `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	Viper     string    `gorm:"column:viper;type:varchar(255);not null;" json:"viper"`
	Image     string    `gorm:"column:image;type:varchar(255);not null;" json:"image"`
	File      string    `gorm:"column:file;type:varchar(255);not null;" json:"file"`
	CreatedAt time.Time `gorm:"column:created_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"`
	UpdatedAt time.Time `gorm:"column:updated_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"updated_at"`
}

func (v *Viper) TableName() string {
	return "viper"
}
